package com.giraffeb.editor.model;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class EditorModel {
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	public List getList() throws Exception{
		return sqlMapClientTemplate.queryForList("getList");
	}
	
	public void addContent(Map<String,Object> params) throws Exception{
		sqlMapClientTemplate.insert("addContent",params);
	}
}
